//
//  TTRefresh.h
//  TTKit
//
//  Created by Apple on 2017/12/21.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import <MJRefresh/MJRefresh.h>
#import <MJRefresh/MJRefreshComponent.h>
#import <MJRefresh/UIScrollView+MJRefresh.h>

@interface TTRefresh : NSObject
@property (nonatomic,strong) UIImageView *circleView;
@property (nonatomic,strong) UIImageView *logoView;
@property (nonatomic,strong) CAShapeLayer *circleLayer;
-(CABasicAnimation *)getTransformAnimation;
-(CAShapeLayer *)getShape;
@end



@interface TTRefreshHeader : MJRefreshHeader
/** 创建header */
+ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock;
/** 创建header */
+ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;
@end


@interface TTRefreshFooter : MJRefreshAutoFooter//MJRefreshBackFooter//
/** 创建header */
+ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock;
/** 创建header */
+ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;
@end
